

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>ALASpy.lasExceptions &mdash; ALASpy 0.1.1 documentation</title>
    
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '0.1.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/sidebar.js"></script>
    <link rel="top" title="ALASpy 0.1.1 documentation" href="../../index.html" />
    <link rel="up" title="Module code" href="../index.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li><a href="../../index.html">ALASpy 0.1.1 documentation</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <h1>Source code for ALASpy.lasExceptions</h1><div class="highlight"><pre>
<span class="c"># -*- coding: utf-8 -*-</span>
<span class="sd">&quot;&quot;&quot; :class:`ALASPy` Exception Classes</span>

<span class="sd">    :Author:</span>
<span class="sd">      - 2009-2012 Roberto Vidmar</span>

<span class="sd">    :Revision:  $Revision: 2 $</span>
<span class="sd">                $Date: 2012-10-22 15:55:02 +0200 (Mon, 22 Oct 2012) $</span>

<span class="sd">    :Copyright: 2009-2012</span>
<span class="sd">                Nicola Creati &lt;ncreati@inogs.it&gt;</span>
<span class="sd">                Roberto Vidmar &lt;rvidmar@inogs.it&gt;</span>

<span class="sd">    :License: MIT/X11 License (see :download:`LICENSE.txt</span>
<span class="sd">                               &lt;../../LICENSE.txt&gt;`)</span>
<span class="sd">&quot;&quot;&quot;</span>
<div class="viewcode-block" id="LasException"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.LasException">[docs]</a><span class="k">class</span> <span class="nc">LasException</span><span class="p">(</span><span class="ne">Exception</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Generic LAS module exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="LasException.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.LasException.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">LasException</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
    <span class="bp">self</span><span class="o">.</span><span class="n">args</span> <span class="o">=</span> <span class="n">args</span>
</div>
<div class="viewcode-block" id="LasException.__repr__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.LasException.__repr__">[docs]</a>  <span class="k">def</span> <span class="nf">__repr__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
    <span class="k">return</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
</div>
<div class="viewcode-block" id="LasException.__str__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.LasException.__str__">[docs]</a>  <span class="k">def</span> <span class="nf">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
    <span class="k">return</span> <span class="nb">str</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
</div></div>
<div class="viewcode-block" id="InvalidLASFile"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.InvalidLASFile">[docs]</a><span class="k">class</span> <span class="nc">InvalidLASFile</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Invalid LAS file exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="InvalidLASFile.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.InvalidLASFile.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">InvalidLASFile</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
</div></div>
<div class="viewcode-block" id="InvalidPointDataFormatID"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.InvalidPointDataFormatID">[docs]</a><span class="k">class</span> <span class="nc">InvalidPointDataFormatID</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Invalid PointDataFormatID exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="InvalidPointDataFormatID.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.InvalidPointDataFormatID.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">InvalidPointDataFormatID</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
</div></div>
<div class="viewcode-block" id="FileCreationError"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.FileCreationError">[docs]</a><span class="k">class</span> <span class="nc">FileCreationError</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; File Creation Error exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="FileCreationError.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.FileCreationError.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">FileCreationError</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
</div></div>
<div class="viewcode-block" id="MandatoryFieldMissing"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.MandatoryFieldMissing">[docs]</a><span class="k">class</span> <span class="nc">MandatoryFieldMissing</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Mandatory Field missing exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="MandatoryFieldMissing.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.MandatoryFieldMissing.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">MandatoryFieldMissing</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
</div></div>
<div class="viewcode-block" id="MustBeImplemented"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.MustBeImplemented">[docs]</a><span class="k">class</span> <span class="nc">MustBeImplemented</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Must Be Implemented exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="MustBeImplemented.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.MustBeImplemented.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">MustBeImplemented</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
</div></div>
<div class="viewcode-block" id="UnimplementedException"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.UnimplementedException">[docs]</a><span class="k">class</span> <span class="nc">UnimplementedException</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Unimplemented exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="UnimplementedException.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.UnimplementedException.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">UnimplementedException</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
</div></div>
<div class="viewcode-block" id="ConversionFailed"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.ConversionFailed">[docs]</a><span class="k">class</span> <span class="nc">ConversionFailed</span><span class="p">(</span><span class="n">LasException</span><span class="p">):</span>
  <span class="sd">&quot;&quot;&quot; Conversion Failed exception class</span>
<span class="sd">  &quot;&quot;&quot;</span>
<div class="viewcode-block" id="ConversionFailed.__init__"><a class="viewcode-back" href="../../ALASpy.html#ALASpy.lasExceptions.ConversionFailed.__init__">[docs]</a>  <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
    <span class="nb">super</span><span class="p">(</span><span class="n">ConversionFailed</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span></div></div>
</pre></div>

          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../../index.html">
              <img class="logo" src="../../_static/ogs.png" alt="Logo"/>
            </a></p>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li><a href="../../index.html">ALASpy 0.1.1 documentation</a> &raquo;</li>
          <li><a href="../index.html" >Module code</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2012, Roberto Vidmar, Nicola Creati.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>